Default

open class Default : INfcService

Default implementation for INfcService.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open fun asBinder(): IBinder
Link copied to clipboard
open fun closeReader()
Closes the reader.
Link copied to clipboard
open fun openCardReader(timeout: Long): CardOpenResult
This method will block until a card is inserted into the default card reader.
Link copied to clipboard
Reads Mifare sectors from the NFC card.
Link copied to clipboard
Reads data from the NFC card.
Link copied to clipboard
Opens NFC &FeliCa readers &reads the UID (Unique Identifier) of the card.
Link copied to clipboard
open fun sendAPDU(apdu: Array<Byte>, bufferSize: Int, closeAfterResponse: Boolean): NfcCommandResponse
Sends an APDU command to the card and returns the response.
Link copied to clipboard
open fun sendFelicaCommand(command: Array<Byte>, bufferSize: Int, closeAfterResponse: Boolean, timeout: Long): NfcCommandResponse
Sends a FeliCa command to the card.
Link copied to clipboard
Writes Mifare sectors to the NFC card.
Link copied to clipboard
open fun writeNfcData(auth: String, data: String): CardReadResult
Writes data to the NFC card.